<template>
  <form>
    当前message:{{message}}--password:{{password}}<br />
    账号：<input type="text" v-model="message" /><br />
    密码：<input type="password" v-model="password" /><br />
    <button type="submit">提交</button>
  </form>
</template>

<script>
export default {
  data(){
    return{
      message: '',
      password: ''
    }
  },
  watch:{
    message(newValue,oldValue){
      console.log(newValue);
      console.log(oldValue);

    }
  }
}
</script>

<style scoped>

</style>